<h2>我借阅的图书</h2>
<ul>
  {% for book in books %}
    <li>
      <a href="{% url 'detail' book.id %}">{{ book.title }}</a> - {{ book.author }}
    </li>
  {% empty %}
    <li>你还没有借阅任何图书。</li>
  {% endfor %}
</ul>
<a href="{% url 'index' %}">返回首页</a>